class Initial < ActiveRecord::Migration
  def self.up
      puts "Create Db Schema .... "
      ActiveRecord::Schema.define() do
    
        create_table "users", :force => true do |t|
          t.column "family_name", :string, :limit => 60
          t.column "given_name", :string, :limit => 60
          t.column "email", :string, :limit => 60, :null => false
          t.column "gender", :integer, :default => 1
          t.column "address", :string, :limit => 256
          t.column "zip_code", :string, :limit => 20
          t.column "phone", :string, :limit => 20
          #t.column "balance", :integer, :default => 1, :null => false
          t.column "is_active", :integer, :default => 1
          t.column "created_at", :datetime
          t.column "updated_at", :datetime
        end
    
        add_index "users", ["email"], :name => "users_1ix"
        
      end
  end
  
  def self.down
  end
end
